<template>
	<view>
		<!-- 登录按钮组件 -->
		<my-login v-if="!token"></my-login>
		
		<!-- 用户信息组件 -->
		<my-info v-else></my-info>
	</view>
</template>

<script>
	import { mapState } from 'vuex'
	import badgeMix from '@/mixins/badge-tabbar.js'
	export default {
		mixins:[badgeMix],
		data() {
			return {
				
			}
		},
		methods: {
			
		},
		computed: {
			...mapState('m_user',['token'])
		}
	}
</script>

<style>
 page{
	 background-color: #efefef;
 }
</style>
